﻿<Window x:Class="DTOTemplatedGenerator.EnterValueDlg"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Please enter value" Height="100" Width="300" WindowStartupLocation="CenterOwner" ShowInTaskbar="False" KeyDown="onDlgKeyDown">
    <Grid FocusManager.FocusedElement="{Binding ElementName=tbValue}">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <TextBox VerticalAlignment="Center" x:Name="tbValue" />
        <RichTextBox x:Name="rtbValue" AcceptsTab="True"/>
        <StackPanel HorizontalAlignment="Right" Grid.Row="1" Orientation="Horizontal">
            <Button Content="Ok" Width="70" Click="onOk"/>
            <Button Content="Cancel" Margin="2,0,0,0" Width="70" Click="onClose"/>
        </StackPanel>
    </Grid>
</Window>
